package com.sgb.kjwl.view.ui.adapter.self.pick;

import android.content.Context;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.user.PriceListEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class MachinePriceListAdapter extends BaseRecycleAdapter<PriceListEntity> {


    public MachinePriceListAdapter(Context context, List<PriceListEntity> datas) {
        super(context, R.layout.item_machine_price_list, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, final PriceListEntity entity) {
        holder.setBinding(BR.viewModel, entity);
    }

    private MachinePriceListAdapter.onEditClickListener editClickListener;

    public void setonEditClick(MachinePriceListAdapter.onEditClickListener editClickListener) {
        this.editClickListener = editClickListener;
    }

    public interface onEditClickListener {
        void onDetailedListClick(PriceListEntity entity, int position);
    }
}
